<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%--
  Created by IntelliJ IDEA.
  User: zhangyiyi
  Date: 2025/3/3
  Time: 9:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    //定义存放书名的数组
    String[] bookName={"操作系统","计算机组成原理","信息管理概论"};
    //将数据保存到page范围
    pageContext.setAttribute("bookName",bookName);
%>
输出书名：
<c:forEach items="${bookName}" var="name" step="1">
    ${name}
</c:forEach>
</body>
</html>
